<template>
  <div class="setter-wrapper-outer">
    <div class="setter-wrapper">
      <a-form>
        <a-form-item label="审批去重">
          <a-select v-model="value.uplicateRemoval">
            <a-select-option v-for="(item, i) in options" :key="i" :value="item.type">{{ item.title }}</a-select-option>
          </a-select>
        </a-form-item>
        <a-form-item label="审批意见填写提示(最多100字)">
          <a-textarea v-model="value.tipsRemake" placeholder="写点什么..." :max-length="100" :rows="4" />
        </a-form-item>
        <a-form-item label="审批意见">
          <a-checkbox v-model="value.remakeRequire">必填</a-checkbox>
          <a-checkbox v-model="value.remakeShow">对发起可见</a-checkbox>
        </a-form-item>
      </a-form>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    value: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      options: [
        {
          type: 0,
          title: "不去重"
        },
        {
          type: 1,
          title: "同一审批人出现多次只保留第一个"
        },
        {
          type: 2,
          title: "同一审批人连续出现多次时,自动去重"
        }
      ]
    };
  }
};
</script>
